package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.EmployeeCertificate;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.EmployeeCertificateVo;

import java.util.List;
import java.util.Map;

public interface EmployeeCertificateMapper {
    /**
     * 删除
     * @param employeeCertificateId
     * @return
     */
    int deleteByPrimaryKey(String[] employeeCertificateId);

    /**
     * 新增人员证书
     * @param record
     * @return
     */
    int insert(EmployeeCertificate record);
    int insertSelective(EmployeeCertificate record);

    /**
     * 根据id查询
     * @param employeeCertificateId
     * @return
     */
    EmployeeCertificateVo selectByPrimaryKey(String employeeCertificateId);

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(EmployeeCertificate record);
    int updateByPrimaryKey(EmployeeCertificate record);

    /**
     * 人员证书列表
     * @param bootstrapSearchBean
     * @return
     */
    List<EmployeeCertificateVo> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 数量
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 验证是否已经存在
     * @return
     */
    int isExistById(Map<String, Object> map);

    /**
     * 修改人员证书信息
     * @param certificate
     * @return
     */
    int updateCertificate(Map certificate);

    /**
     * 修改人员证书信息
     * @param certificate
     * @return
     */
    int updateByemployee(Map certificate);
}